<table peer_prices_count="<%= peer_prices.size %>">
  <tr>
    <th></th>
    <th>名称</th>
    <th>型号</th>
    <th class='peer_prices'>
      <%= render :file => 'peer_prices/_title_for_peer_price.html', :locals => { :enterprise => @enterprise } %>
    </th>
    <th class='trade_prices'>
      <%= render :file => 'peer_prices/_title_for_trade_price.html', :locals => { :enterprise => @enterprise } %>
    </th>
    <th class='retail_prices'>
      <%= render :file => 'peer_prices/_title_for_retail_price.html', :locals => { :enterprise => @enterprise } %>
    </th>
    <th>库存</th>
    <th>状态</th>
  </tr>
  <% peer_prices.each_with_index do |peer_price,index| %>
    <%= render :partial => 'peer_price.html', :locals => { :peer_price => peer_price, :index => index, :enterprise => enterprise} %>
  <% end %>
  <% if enterprise.employ_current_user? %>
  <tr class='new_peer_price_tr'>
    <td colspan="8" class="c">
      <div id="new_peer_price">
        <%= render :partial => 'to_new.html' %>
      </div>
    </td>
  </tr>
  <% end %>
</table>